/**
 * Created by Administrator on 2016/9/14.
 */
var radioStu = document.getElementById("schStu");
var noschStu = document.getElementById("noschStu");
var stuDiv = document.getElementById("stu");
var no_stuDiv = document.getElementById("no_stu");
var cities = document.getElementById("cities");
var schools = document.getElementsByClassName("school");
function chooseStu(){
    if(radioStu.checked){
//        alert('dd');
        stuDiv.classList.remove('hide');
        no_stuDiv.classList.add('hide');
    }else{
        stuDiv.classList.add('hide');
        no_stuDiv.classList.remove('hide');
    }
}

function cityChange(){
    var len = cities.children.length;
    for(var i = 0;i<len;i++){
        if(cities.children[i].selected){
            schools[i].classList.remove('hide');
        }else{
            schools[i].classList.add('hide');
        }
    }
}
radioStu.onclick = chooseStu;
noschStu.onclick = chooseStu;
cities.onclick = cityChange;
